
# everything in this subdirectory should be compiled with all warnings as errors
add_compile_options(
	${ALL_WARNINGS_AS_ERRORS}
)

# according to the documentary, if a program is parallelised with OpenMP,
# Eigen's own parallelisation should be disabled (probably due to possible
# oversubscription).
# See https://eigen.tuxfamily.org/dox/TopicMultiThreading.html
# add_compile_definitions(
	# EIGEN_DONT_PARALLELIZE
# )


# =============================
# main executable
# =============================

add_executable( ${CMAKE_PROJECT_NAME} "" )

target_sources( ${CMAKE_PROJECT_NAME} PRIVATE
	main.cpp
	cli.hpp
	cli.cpp
	cliFunctions.hpp
	cliFunctions.cpp
	benchmark.hpp
	benchmark.cpp
	exporter.hpp
	timeMarchingLoop.hpp
)

target_link_libraries( ${CMAKE_PROJECT_NAME}
	mesh
	gmshImport
	vtkInterface
	solverBase
	sweSolver
	blockwiseIntegrated
	verification
	rasterReader
	settingsImport
)
